package org.example.model;

public class LongDoubleResult implements Comparable<LongDoubleResult> {

    public Long id;

    public Double value;

    public LongDoubleResult(Long id, Double value) {
        this.id = id;
        this.value = value;
    }

    @Override
    public String toString() {
        return String.format("%d|%.2f", id, value);
    }

    @Override
    public int compareTo(LongDoubleResult o) {
        return Long.compare(this.id, o.id);
    }
}
